#!/usr/bin/env python
# coding: utf-8

# 对于给定数字`a`计算`a+aa+aaa+aaaa`的值
# 
# 输入：字符串`a='9'`
# 
# 要求：打印输出结果
# 
# 预期输出：`11106`

# In[1]:


a = '9'
total = int(a) + int(2*a) + int(3*a) + int(4*a)
print(total)

